﻿
namespace UserDefinedForms.Windows.Forms
{
	/// <summary>
	/// This is the abstract edit form for the <see cref="Entities.FormData"/> entity.
	/// </summary>
	/// <remarks>This class is overwritten by .netTiers at each generation.</remarks>
	[System.ComponentModel.DesignerCategoryAttribute("code")]
	public abstract class FormDataEditControlBase : System.Windows.Forms.UserControl
	{
		#region Fields
		
		//private System.Windows.Forms.TableLayoutPanel uxTableLayoutPanel;
		/// <summary>
		/// The ErrorProvider for the Entity;
		/// </summary>
		protected System.Windows.Forms.ErrorProvider uxErrorProvider;
		
		/// <summary>
		/// The BindingSource for the entity.
		///</summary>
		protected System.Windows.Forms.BindingSource uxBindingSource;
						
		
		/// <summary>
		/// TextBox for the DataId property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxDataId;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the DataId property.
		/// </summary>
		protected System.Windows.Forms.Label uxDataIdLabel;
		
		/// <summary>
		/// ComboBox for the Code property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxCode;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Code property.
		/// </summary>
		protected System.Windows.Forms.Label uxCodeLabel;
		
		/// <summary>
		/// ComboBox for the FormId property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxFormId;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the FormId property.
		/// </summary>
		protected System.Windows.Forms.Label uxFormIdLabel;
		
		/// <summary>
		/// ComboBox for the ControlId property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxControlId;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the ControlId property.
		/// </summary>
		protected System.Windows.Forms.Label uxControlIdLabel;
		
		/// <summary>
		/// TextBox for the Data property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxData;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Data property.
		/// </summary>
		protected System.Windows.Forms.Label uxDataLabel;
		
		/// <summary>
		/// ComboBox for the SupOrderCode property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxSupOrderCode;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the SupOrderCode property.
		/// </summary>
		protected System.Windows.Forms.Label uxSupOrderCodeLabel;
		
		/// <summary>
		/// TextBox for the FormType property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxFormType;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the FormType property.
		/// </summary>
		protected System.Windows.Forms.Label uxFormTypeLabel;
		#endregion
		
		#region Main entity
		private Entities.FormData _FormData;
		/// <summary>
		/// Gets or sets the <see cref="Entities.FormData"/> entity to edit with this form.
		/// </summary>
		/// <value>The <see cref="Entities.FormData"/> instance.</value>
		public Entities.FormData FormData
		{
			get {return this._FormData;}
			set
			{
				this._FormData = value;
				if (value != null) 
				{
					this.uxBindingSource.DataSource = value;
					BindControls();
				}			
				
			}
		}
		#endregion
		
		/// <summary>
		/// Binds the controls.
		/// </summary>
		private void BindControls()
		{
			this.uxDataId.DataBindings.Clear();
			this.uxDataId.DataBindings.Add("Text", this.uxBindingSource, "DataId", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxCode.DataBindings.Clear();
			this.uxCode.DataBindings.Add("SelectedValue", this.uxBindingSource, "Code", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxFormId.DataBindings.Clear();
			this.uxFormId.DataBindings.Add("SelectedValue", this.uxBindingSource, "FormId", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxControlId.DataBindings.Clear();
			this.uxControlId.DataBindings.Add("SelectedValue", this.uxBindingSource, "ControlId", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxData.DataBindings.Clear();
			this.uxData.DataBindings.Add("Text", this.uxBindingSource, "Data", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxSupOrderCode.DataBindings.Clear();
			this.uxSupOrderCode.DataBindings.Add("SelectedValue", this.uxBindingSource, "SupOrderCode", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxFormType.DataBindings.Clear();
			this.uxFormType.DataBindings.Add("Text", this.uxBindingSource, "FormType", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
		}					
		
		#region Constructor
		
		/// <summary>
		/// Initializes a new instance of the <see cref="FormDataEditControlBase"/> class.
		/// </summary>
		public FormDataEditControlBase()
		{
			InitializeComponent();			
			
			this.uxBindingSource.CurrentItemChanged += new System.EventHandler(uxBindingSource_currentItemChanged);
		}		
		
		/// <summary>
		/// 
		/// </summary>
		private void uxBindingSource_currentItemChanged(object sender, System.EventArgs e)
		{
			if (_FormData != null) _FormData.Validate();
		}	
				
		/// <summary>
		/// Initializes the component.
		/// </summary>
		public void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			this.uxErrorProvider = new System.Windows.Forms.ErrorProvider(this.components);
			this.uxBindingSource = new System.Windows.Forms.BindingSource(this.components);
			
			//this.uxTableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
			this.uxDataId = new System.Windows.Forms.TextBox();
			uxDataIdLabel = new System.Windows.Forms.Label();
			this.uxCode = new System.Windows.Forms.ComboBox();
			uxCodeLabel = new System.Windows.Forms.Label();
			this.uxFormId = new System.Windows.Forms.ComboBox();
			uxFormIdLabel = new System.Windows.Forms.Label();
			this.uxControlId = new System.Windows.Forms.ComboBox();
			uxControlIdLabel = new System.Windows.Forms.Label();
			this.uxData = new System.Windows.Forms.TextBox();
			uxDataLabel = new System.Windows.Forms.Label();
			this.uxSupOrderCode = new System.Windows.Forms.ComboBox();
			uxSupOrderCodeLabel = new System.Windows.Forms.Label();
			this.uxFormType = new System.Windows.Forms.TextBox();
			uxFormTypeLabel = new System.Windows.Forms.Label();
			
			((System.ComponentModel.ISupportInitialize)(this.uxBindingSource)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.uxErrorProvider)).BeginInit();
			this.SuspendLayout();
			
			// 
			// uxTableLayoutPanel
			// 
			//this.uxTableLayoutPanel.AutoSize = true;
			//this.uxTableLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
			//this.uxTableLayoutPanel.ColumnCount = 2;
			//this.uxTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
			//this.uxTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 250F));
			//this.uxTableLayoutPanel.Location = new System.Drawing.System.Drawing.Point(3, 3);
			//this.uxTableLayoutPanel.Name = "uxTableLayoutPanel";
			//this.uxTableLayoutPanel.RowCount = 2;
			//this.uxTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
			//this.uxTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
			//this.uxTableLayoutPanel.Size = new System.Drawing.Size(450, 50);
			//this.uxTableLayoutPanel.TabIndex = 0;
			
			//
			// uxErrorProvider
			//
			this.uxErrorProvider.ContainerControl = this;
			this.uxErrorProvider.DataSource = this.uxBindingSource;
			
			//
			// uxDataIdLabel
			//
			this.uxDataIdLabel.Name = "uxDataIdLabel";
			this.uxDataIdLabel.Text = "Data Id:";
			this.uxDataIdLabel.Location = new System.Drawing.Point(3, 0);
			this.Controls.Add(this.uxDataIdLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxDataIdLabel);			
			//
			// uxDataId
			//
			this.uxDataId.Name = "uxDataId";
            this.uxDataId.ReadOnly = true;
			//this.uxTableLayoutPanel.Controls.Add(this.uxDataId);
			this.uxDataId.Location = new System.Drawing.Point(160, 0);
			this.Controls.Add(this.uxDataId);
			//
			// uxCodeLabel
			//
			this.uxCodeLabel.Name = "uxCodeLabel";
			this.uxCodeLabel.Text = "Code:";
			this.uxCodeLabel.Location = new System.Drawing.Point(3, 26);
			this.Controls.Add(this.uxCodeLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxCodeLabel);			
			//
			// uxCode
			//
			this.uxCode.Name = "uxCode";
			//this.uxTableLayoutPanel.Controls.Add(this.uxCode);
			this.uxCode.Location = new System.Drawing.Point(160, 26);
			this.Controls.Add(this.uxCode);
			//
			// uxFormIdLabel
			//
			this.uxFormIdLabel.Name = "uxFormIdLabel";
			this.uxFormIdLabel.Text = "Form Id:";
			this.uxFormIdLabel.Location = new System.Drawing.Point(3, 52);
			this.Controls.Add(this.uxFormIdLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxFormIdLabel);			
			//
			// uxFormId
			//
			this.uxFormId.Name = "uxFormId";
			//this.uxTableLayoutPanel.Controls.Add(this.uxFormId);
			this.uxFormId.Location = new System.Drawing.Point(160, 52);
			this.Controls.Add(this.uxFormId);
			//
			// uxControlIdLabel
			//
			this.uxControlIdLabel.Name = "uxControlIdLabel";
			this.uxControlIdLabel.Text = "Control Id:";
			this.uxControlIdLabel.Location = new System.Drawing.Point(3, 78);
			this.Controls.Add(this.uxControlIdLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxControlIdLabel);			
			//
			// uxControlId
			//
			this.uxControlId.Name = "uxControlId";
			//this.uxTableLayoutPanel.Controls.Add(this.uxControlId);
			this.uxControlId.Location = new System.Drawing.Point(160, 78);
			this.Controls.Add(this.uxControlId);
			//
			// uxDataLabel
			//
			this.uxDataLabel.Name = "uxDataLabel";
			this.uxDataLabel.Text = "Data:";
			this.uxDataLabel.Location = new System.Drawing.Point(3, 104);
			this.Controls.Add(this.uxDataLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxDataLabel);			
			//
			// uxData
			//
			this.uxData.Name = "uxData";
			this.uxData.Width = 250;
			this.uxData.MaxLength = 200;
			//this.uxTableLayoutPanel.Controls.Add(this.uxData);
			this.uxData.Location = new System.Drawing.Point(160, 104);
			this.Controls.Add(this.uxData);
			//
			// uxSupOrderCodeLabel
			//
			this.uxSupOrderCodeLabel.Name = "uxSupOrderCodeLabel";
			this.uxSupOrderCodeLabel.Text = "Sup Order Code:";
			this.uxSupOrderCodeLabel.Location = new System.Drawing.Point(3, 130);
			this.Controls.Add(this.uxSupOrderCodeLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxSupOrderCodeLabel);			
			//
			// uxSupOrderCode
			//
			this.uxSupOrderCode.Name = "uxSupOrderCode";
			//this.uxTableLayoutPanel.Controls.Add(this.uxSupOrderCode);
			this.uxSupOrderCode.Location = new System.Drawing.Point(160, 130);
			this.Controls.Add(this.uxSupOrderCode);
			//
			// uxFormTypeLabel
			//
			this.uxFormTypeLabel.Name = "uxFormTypeLabel";
			this.uxFormTypeLabel.Text = "Form Type:";
			this.uxFormTypeLabel.Location = new System.Drawing.Point(3, 156);
			this.Controls.Add(this.uxFormTypeLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxFormTypeLabel);			
			//
			// uxFormType
			//
			this.uxFormType.Name = "uxFormType";
			//this.uxTableLayoutPanel.Controls.Add(this.uxFormType);
			this.uxFormType.Location = new System.Drawing.Point(160, 156);
			this.Controls.Add(this.uxFormType);
			//
			// uxCode
			//				
			this.uxCode.DisplayMember = "OrderType";	
			this.uxCode.ValueMember = "OrderId";	
			//
			// uxControlId
			//				
			this.uxControlId.DisplayMember = "Name";	
			this.uxControlId.ValueMember = "ControlId";	
			//
			// uxFormId
			//				
			this.uxFormId.DisplayMember = "Name";	
			this.uxFormId.ValueMember = "FormId";	
			//
			// uxSupOrderCode
			//				
			this.uxSupOrderCode.DisplayMember = "OrderType";	
			this.uxSupOrderCode.ValueMember = "OrderId";	
			// 
			// FormDataEditControlBase
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			//this.Controls.Add(this.uxTableLayoutPanel);
			this.AutoScroll = true;
			this.Name = "FormDataEditControlBase";
			this.Size = new System.Drawing.Size(478, 311);
			//this.Localizable = true;
			((System.ComponentModel.ISupportInitialize)(this.uxErrorProvider)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.uxBindingSource)).EndInit();			
			this.ResumeLayout(false);
			this.PerformLayout();
		}
		#endregion
				
		#region ComboBox List
		
				
		private Entities.TList<Entities.Order> _CodeList;
		
		/// <summary>
		/// The ComboBox associated with the Code property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.Order> CodeList
		{
			get {return _CodeList;}
			set 
			{
				this._CodeList = value;
				this.uxCode.DataSource = null;
				this.uxCode.DataSource = value;
			}
		}
		
		private bool _allowNewItemInCodeList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the Code property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInCodeList
		{
			get { return _allowNewItemInCodeList;}
			set
			{
				this._allowNewItemInCodeList = value;
				this.uxCode.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
				
		private Entities.TList<Entities.FormControl> _ControlIdList;
		
		/// <summary>
		/// The ComboBox associated with the ControlId property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.FormControl> ControlIdList
		{
			get {return _ControlIdList;}
			set 
			{
				this._ControlIdList = value;
				this.uxControlId.DataSource = null;
				this.uxControlId.DataSource = value;
			}
		}
		
		private bool _allowNewItemInControlIdList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the ControlId property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInControlIdList
		{
			get { return _allowNewItemInControlIdList;}
			set
			{
				this._allowNewItemInControlIdList = value;
				this.uxControlId.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
				
		private Entities.TList<Entities.DesignForm> _FormIdList;
		
		/// <summary>
		/// The ComboBox associated with the FormId property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.DesignForm> FormIdList
		{
			get {return _FormIdList;}
			set 
			{
				this._FormIdList = value;
				this.uxFormId.DataSource = null;
				this.uxFormId.DataSource = value;
			}
		}
		
		private bool _allowNewItemInFormIdList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the FormId property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInFormIdList
		{
			get { return _allowNewItemInFormIdList;}
			set
			{
				this._allowNewItemInFormIdList = value;
				this.uxFormId.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
				
		private Entities.TList<Entities.Order> _SupOrderCodeList;
		
		/// <summary>
		/// The ComboBox associated with the SupOrderCode property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.Order> SupOrderCodeList
		{
			get {return _SupOrderCodeList;}
			set 
			{
				this._SupOrderCodeList = value;
				this.uxSupOrderCode.DataSource = null;
				this.uxSupOrderCode.DataSource = value;
			}
		}
		
		private bool _allowNewItemInSupOrderCodeList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the SupOrderCode property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInSupOrderCodeList
		{
			get { return _allowNewItemInSupOrderCodeList;}
			set
			{
				this._allowNewItemInSupOrderCodeList = value;
				this.uxSupOrderCode.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
		
		#endregion
		
        #region Field visibility

        /// <summary>
        /// Indicates if the controls associated with the uxDataId property should be visible.
        /// </summary>
        [System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Set Visible property for related controls.")]
        public bool uxDataIdVisible
        {
            get { return this.uxDataId.Visible; }
            set
            {
                this.uxDataIdLabel.Visible = value;
                this.uxDataId.Visible = value;
            }
        }

        /// <summary>
        /// Indicates if the controls associated with the uxDataId property should be enabled.
        /// </summary>
        [System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Set Enabled property for related controls.")]
        public bool uxDataIdEnabled
        {
            get { return this.uxDataId.Enabled; }
            set
            {
                this.uxDataId.Enabled = value;
            }
        }
        /// <summary>
        /// Indicates if the controls associated with the uxCode property should be visible.
        /// </summary>
        [System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Set Visible property for related controls.")]
        public bool uxCodeVisible
        {
            get { return this.uxCode.Visible; }
            set
            {
                this.uxCodeLabel.Visible = value;
                this.uxCode.Visible = value;
            }
        }

        /// <summary>
        /// Indicates if the controls associated with the uxCode property should be enabled.
        /// </summary>
        [System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Set Enabled property for related controls.")]
        public bool uxCodeEnabled
        {
            get { return this.uxCode.Enabled; }
            set
            {
                this.uxCode.Enabled = value;
            }
        }
        /// <summary>
        /// Indicates if the controls associated with the uxFormId property should be visible.
        /// </summary>
        [System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Set Visible property for related controls.")]
        public bool uxFormIdVisible
        {
            get { return this.uxFormId.Visible; }
            set
            {
                this.uxFormIdLabel.Visible = value;
                this.uxFormId.Visible = value;
            }
        }

        /// <summary>
        /// Indicates if the controls associated with the uxFormId property should be enabled.
        /// </summary>
        [System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Set Enabled property for related controls.")]
        public bool uxFormIdEnabled
        {
            get { return this.uxFormId.Enabled; }
            set
            {
                this.uxFormId.Enabled = value;
            }
        }
        /// <summary>
        /// Indicates if the controls associated with the uxControlId property should be visible.
        /// </summary>
        [System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Set Visible property for related controls.")]
        public bool uxControlIdVisible
        {
            get { return this.uxControlId.Visible; }
            set
            {
                this.uxControlIdLabel.Visible = value;
                this.uxControlId.Visible = value;
            }
        }

        /// <summary>
        /// Indicates if the controls associated with the uxControlId property should be enabled.
        /// </summary>
        [System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Set Enabled property for related controls.")]
        public bool uxControlIdEnabled
        {
            get { return this.uxControlId.Enabled; }
            set
            {
                this.uxControlId.Enabled = value;
            }
        }
        /// <summary>
        /// Indicates if the controls associated with the uxData property should be visible.
        /// </summary>
        [System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Set Visible property for related controls.")]
        public bool uxDataVisible
        {
            get { return this.uxData.Visible; }
            set
            {
                this.uxDataLabel.Visible = value;
                this.uxData.Visible = value;
            }
        }

        /// <summary>
        /// Indicates if the controls associated with the uxData property should be enabled.
        /// </summary>
        [System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Set Enabled property for related controls.")]
        public bool uxDataEnabled
        {
            get { return this.uxData.Enabled; }
            set
            {
                this.uxData.Enabled = value;
            }
        }
        /// <summary>
        /// Indicates if the controls associated with the uxSupOrderCode property should be visible.
        /// </summary>
        [System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Set Visible property for related controls.")]
        public bool uxSupOrderCodeVisible
        {
            get { return this.uxSupOrderCode.Visible; }
            set
            {
                this.uxSupOrderCodeLabel.Visible = value;
                this.uxSupOrderCode.Visible = value;
            }
        }

        /// <summary>
        /// Indicates if the controls associated with the uxSupOrderCode property should be enabled.
        /// </summary>
        [System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Set Enabled property for related controls.")]
        public bool uxSupOrderCodeEnabled
        {
            get { return this.uxSupOrderCode.Enabled; }
            set
            {
                this.uxSupOrderCode.Enabled = value;
            }
        }
        /// <summary>
        /// Indicates if the controls associated with the uxFormType property should be visible.
        /// </summary>
        [System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Set Visible property for related controls.")]
        public bool uxFormTypeVisible
        {
            get { return this.uxFormType.Visible; }
            set
            {
                this.uxFormTypeLabel.Visible = value;
                this.uxFormType.Visible = value;
            }
        }

        /// <summary>
        /// Indicates if the controls associated with the uxFormType property should be enabled.
        /// </summary>
        [System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Set Enabled property for related controls.")]
        public bool uxFormTypeEnabled
        {
            get { return this.uxFormType.Enabled; }
            set
            {
                this.uxFormType.Enabled = value;
            }
        }

        #endregion

		/// <summary> 
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.IContainer components = null;

		/// <summary> 
		/// Clean up any resources being used.
		/// </summary>
		/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
		protected override void Dispose(bool disposing)
		{
			if (disposing && (components != null))
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}
	}
}
